def get_totals(stuff):
    totals = {"price":0, "weight":0, "count":len(stuff)}
    price = 0.0
    weight = 0.0
    for item in stuff:
        totals['price'] += item['price']
        totals['weight'] += item['weight']
    return totals

def show(stuff):
    for item in stuff:
        print(item)        
    if len(stuff) != 0: 
        print ("\nTotals: ", get_totals(stuff))
    else:
        print (stuff)
    
    